<template>
   <h4>
    孙子组件
   </h4>
   <p> {{ count }}</p>
</template>

<script>
import { inject } from 'vue';
const count = inject('count')
// const name = inject("name");
// const age = inject("age");
// const { count, setCount } = inject("count");

// console.log(name.value);
// console.log(age.value);

// const {count,changeCount} = inject('count');
// const count = inject('count');
</script>

<style scoped>

</style>